Skip to content
  • 0 Votes
    2 Posts
    823 Views
    Pablo J. RoginaP

    @Davide87 said in Search IP address in DHCP local network:

    Such server has a dynamic IP assigned by the DHCP. Therefore, I don't know the IP address, but I know its hostname.

    It looks like your problem is about networking, not Qt-related.

    You need to ensure your network provides a good way for name resolution (i.e. DNS service). If your server is assigned a dynamic IP via DHCP that a DNS entry for such server name is keep up to date. This post could be a potential guide just in case.

  • 0 Votes
    7 Posts
    5k Views
    jeanflesJ

    I'm just realizing that what I was trying to do was maybe nonsense : I was trying to pass on to the mysql server a value for the client on which my Qt program is running i.e. I was trying to "deceive" the server. And I could understand then that there would be no such method in QSqlDatabase (and that you couldn't understand my question initially).

    Could you confirm my reasoning please?